﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Budget.WCF;
using Budget.HelperClasses;
using Budget.DataAccess;

namespace Budget.UnitTests.WCF.DIObjects
{
	public class DISpendingServiceWrapper
	{
		ISpendingService svc;

		public DISpendingServiceWrapper( ISpendingService service )
		{
			svc = service;
		}

		public bool SpendingsExistForMonthYear( int month, int year )
		{
			return svc.SpendingsExistForMonthYear( month, year );
		}

		public IList<MonthSummary> GetMonthCategorySummary(DateTime analysisDate)
		{
			return svc.GetMonthCategorySummary( analysisDate );
		}

		public IList<Spending> GetSpendingsByMonthAndYear( int month, int year )
		{
			return svc.GetSpendingsByMonthAndYear( month, year );
		}

		public void Save( Spending spending )
		{
			svc.Save( spending );
		}
	}
}
